package com.ok.common.ext

fun String?.safe(): String {
    return this ?: ""
}

fun Int?.safe(): Int {
    return this ?: 0
}

fun Long?.safe(): Long {
    return this ?: 0L
}

fun Float?.safe(): Float {
    return this ?: 0F
}

fun Boolean?.safe(): Boolean {
    return this ?: false
}

fun Double?.safe(): Double {
    return this ?: 0.0
}